import JsEncrypt from 'jsencrypt';

// 对密码加密
export default (val) => {
    let encrypt = new JsEncrypt();
    encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCh+vgqXiTPni0eBMFZ9YnrjBcqmvGJKVS6PlIPLA/hzStb1B+nKEYaPi1lDCAZbS1eps/ubbHkSyBniSRNEh/hbZGozjlZ4E4ZZFwhS2wzkjkbWPRCUJyYx0v8ukC4zrO1ab+nGM/t3LgxNwQQFKyLexduFaghruvjxmnwqwPVtwIDAQAB');
    return encrypt.encrypt(`${val}`);
}